package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import static io.swagger.v3.oas.annotations.media.Schema.*;

@Data
@Schema(description = "新增门店地址 DTO")
public class AddStoreAddressDTO {
    @NotNull
    @Schema(description = "门店 ID", requiredMode = RequiredMode.REQUIRED, example = "1")
    private Long storeId;

    @NotBlank
    @Schema(description = "省市区", requiredMode = RequiredMode.REQUIRED)
    private String region;

    @NotBlank
    @Schema(description = "详细地址",requiredMode = RequiredMode.REQUIRED)
    private String detail;

    @Schema(description = "是否默认地址，1=是，0=否")
    private Integer isDefault = 0;
}
